package com.galaxy.service.entity.system;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
import lombok.NoArgsConstructor;

/**
 * 角色
 * @author caijinbang
 * @date 2018/9/12 12:42
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "role")
public class Role implements Serializable{

    @TableId
    private String id;

    private String name;

    @TableField(exist = false)
    private List<Permission> permissions;

}
